#!/bin/bash

set -e
if [[ "$1" == "" ]]; then
    echo Input Parameter Table Name
    exit 2
fi
table=$1
echo "select * from $table ; " | mysql -u root mythconverg > $table.csv

